XCollection

The XCollection application provides a transformation of a XML representation of a collection to the corresponding java class. This application works for the classes:

  • java.util.List
  • java.util.Vector
  • java.util.SortedList

The XML representation of a java.util.Vector looks like this:

<item class-type="java.util.Vector" value-type="java.lang.String">
  <item>value1</item>
  <item>value3</item>
  <item>value5</item>
  <item>value2</item>
</item> 
      

The structure for the other classes is similar. Only the class-type attribute has to be changed. The value-type is limited to:

  • java.lang.String
  • java.lang.Integer

Also mixed data types are valid:

<item class-type="java.util.Vector">
  <item type="java.lang.String">value1</item>
  <item type="java.lang.Integer">42</item>
</item>